package com.lswsjw.android.lib.sqlite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public abstract class DBOpen
{
    
    protected Context mContext;
    
    protected String mName;
    
    protected CursorFactory mFactory;
    
    protected int mVersion;
    
    protected String mPackageName;
    
    public void setParams(Context context, String name, CursorFactory factory,
            int version, String packageName)
    {
        mContext = context;
        mName = name;
        mFactory = factory;
        mVersion = version;
        mPackageName = packageName;
    }
    
    /**
     * @return before calling getDBOpen, you must call setPatams
     */
    public abstract DBOpenHelper getDBOpen();

}
